package com.dragon.refect.clazz;

import java.lang.reflect.Constructor;

/**
 * @author dragon
 * @since 2019/12/1
 */
public class ClassGetConstructorWithParameterTest {

    public static void main(String[] args) throws NoSuchMethodException {
        Class<Person> personClass = Person.class;
        Constructor<Person> personConstructor = personClass.getConstructor(String.class, Integer.class);
        System.out.println(personConstructor.getParameterTypes()[0]);
    }
}
